package com.rms.recruit_management_system.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户类")
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "姓名")
    private String name;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "电话")
    private String phone;
    @Schema(description = "性别")
    private String gender;
    @Schema(description = "年龄")
    private String age;
    @Schema(description = "地址")
    private String address;
    @TableField(value = "user_pic")
    @Schema(description = "用户头像")
    private String userPic;
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
